/*
 * @Description:规格管理
 */
import request from '@/utils/request'
export default {
    //添加
    add(data) {
        return request.post(`/fish/base/spec/add`, { breedType: sessionStorage.breedType, ...data })
    },
    //编辑
    edit(data) {
        return request.post(`/fish/base/spec/edit`, { breedType: sessionStorage.breedType, ...data })
    },
    //批量删除
    delList(list) {
        return request.get(`/fish/base/spec/delListById?idList=${list}`)
    },
    //条件查询
    queryByCondition(data) {
        return request.post(`/fish/base/spec/queryByCondition`, { 
            breedType: sessionStorage.breedType, 
            ...data 
        })
    },
    //分页查询
    queryPageByCondition(data) {
        data.entity = !data.entity ? {} : data.entity
        data.entity.breedType = sessionStorage.breedType;
        return request.post(`/fish/base/spec/queryPageByCondition`, { ...data })
    },
};
